import FindPub from '../views/shopfind/FindPub'
import FindList from '../views/shopfind'
import TransPub from '../views/shoptrans/TransPub'
import TransList from '../views/shoptrans'
import DashBoard from '../views/dashBoard'
import TradePub from '../views/tradetrans/tradePub'
import TradeList from '../views/tradetrans'
import TradeEdit from '../views/tradetrans/tradeEdit'
import {HomeOutlined,LaptopOutlined,InsertRowBelowOutlined,MergeCellsOutlined,FundOutlined} from '@ant-design/icons';
import Welcome from '../lalyout/components/Welcome'
import NotFound from '../views/notfound'
import ECharts from '../views/echarts'
export const menuData = [
    {
        path:'/main/echarts',
        component:DashBoard,
        title:'控制台',
        icon:<HomeOutlined/>,
        rules:['root']
    },
    {
        path:'/main/dashboard',
        component:ECharts,
        title:'数据统计',
        icon:<FundOutlined />,
        rules:['root']
    },
    {
        path:'/main/shoptrans',
        title:'发布管理',
        icon:<LaptopOutlined/>,
        rules:['root','company','admin'],
        children:[
            {
                path:'/main/shoptrans/transpub',
                component:TransPub,
                title:'商铺发布',
                rules:['root','company','admin']
            },
            {
                path:'/main/shoptrans/translist',
                component:TransList,
                title:'发布列表',
                rules:['root','admin']
            }
        ]

    },
    {
        path:'/main/shopfind',
        title:'找铺管理',
        icon:<InsertRowBelowOutlined/>,
        rules:['root','personal','admin'],
        children:[
            {
                path:'/main/shopfind/findpub',
                component:FindPub,
                title:'找铺发布',
                rules:['root','personal','admin']
            },
            {
                path:'/main/shopfind/findlist',
                component:FindList,
                title:'找铺列表',
                rules:['root','admin']
            }
        ]

    },
    {
        path:'/main/tradetrans',
        title:'业态整理',
        icon:<MergeCellsOutlined/>,
        rules:['root','admin'],
        children:[
            {
                path:'/main/tradetrans/tradepub',
                component:TradePub,
                title:'业态发布',
                rules:['root','admin']
            },
            {
                path:'/main/tradetrans/tradelist',
                component:TradeList,
                title:'业态列表',
                rules:['root','admin']
            },
            {
                path:'/main/tradetrans/tradeedit',
                component:TradeEdit,
                rules:['root','admin']
            }
        ]

    },
    {
        path:'/main',
        component:Welcome,
        rules:['root','admin','company','personal'],
        exact:true
    },
    {
        path:'*',
        component:NotFound,
        rules:['root','admin','company','personal'],
    }
]